package com.collectplus.express.parcel.fragment;

import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.widget.LinearLayout;
import android.widget.ListView;

import com.collectplus.express.BaseFragment;
import com.collectplus.express.R;
import com.collectplus.express.tools.DensityUtils;

/***
 * 我的包裹-收到的的包裹列表
 *
 * @author JinFangXing <br>
 *         2016-9-24下午5:23:06
 */
public class BaseReceiverParcelFragment extends BaseFragment {

    protected ListView mListView;
    protected SwipeRefreshLayout mRefreshLayout;
    protected int type = 0;
    protected LinearLayout mEmptyLayout;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        type = getArguments().getInt("type");
    }

    @Override
    protected void findViewById() {
        super.findViewById();
        mListView = (ListView) findViewById(R.id.listview);
        mListView.setDividerHeight(DensityUtils.dip2px(getActivityContext(), 11));
        mListView.setDivider(null);
        mRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_container);
        mEmptyLayout = (LinearLayout) findViewById(R.id.empty_receive_layout);
    }

    @Override
    public void onPause() {
        super.onPause();
    }

}
